package db

const TableNameUserHfWallet = TablePrefix + "user_hf_wallet"

type UserHfWallet struct {
	BaseModel
	UID         uint   `gorm:"column:uid;type:int(11);default:0;comment:用户id" json:"uid" form:"uid"`                                  // 用户id
	UserCustID  string `gorm:"column:user_cust_id;type:varchar(20);default:'';comment:用户客户号" json:"user_cust_id" form:"user_cust_id"` // 用户客户号
	AcctID      string `gorm:"column:acct_id;type:varchar(20);default:'';comment:账号id" json:"acct_id" form:"acct_id"`                 // 账号id
	UserName    string `gorm:"column:user_name;type:varchar(50);default:'';comment:用户姓名" json:"user_name" form:"user_name"`           // 用户姓名
	IDCard      string `gorm:"column:id_card;type:varchar(100);default:'';comment:账号唯一标识" json:"id_card" form:"id_card"`              // 账号唯一标识
	RedirectUrl string `gorm:"column:redirect_url;type:varchar(300);default:'';comment:钱包地址" json:"redirect_url" form:"redirect_url"` // 钱包地址
}

func (*UserHfWallet) TableName() string {
	return TableNameUserHfWallet
}

type UserHfWalletHasOneRealName struct {
	UserHfWallet
	RealName UserRealName `gorm:"foreignKey:uid;references:uid" json:"real_name"`
}
